package com.example.study_backstage.controller;


import com.example.study_backstage.entity.SysMenu;
import com.example.study_backstage.entity.SysUser;
import com.example.study_backstage.service.SysMenuService;
import com.example.study_backstage.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 菜单权限表 前端控制器
 * </p>
 *
 * @author lxw
 * @since 2023年03月29日
 */
@RestController
@RequestMapping("/sysMenu")
public class SysMenuController {

    @Resource
    private SysMenuService sysMenuService;

    @GetMapping("/list")
    public Result<List<SysMenu>> listMenu() {
        List<SysMenu> list = sysMenuService.listMenu();
        return Result.OK(list);
    }

}

